<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:U('Merchant/index')}">商户列表</a></li>
			<li class="active"><a href="{:U('Merchant/add')}">添加商户</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form" enctype="multipart/form-data" action="{:U('Merchant/add_post')}">
			<fieldset>
				<div class="control-group">
					<label class="control-label"><b style="color:red;">* </b> 商户名称</label>
					<div class="controls">
						<input type="text" name="name">
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><b style="color:red;">* </b> 商户logo</label>
					<div class="controls">
						<input type="file" name="logo">
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><b style="color:red;">* </b> 所在区域</label>
					<div class="controls">
						<input type="text" name="area">
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><b style="color:red;">* </b> 商户类型</label>
					<div class="controls">
						<volist name="type" id="vo">
							<input type="checkbox" name="type_id[]" value="{$vo.id}"/>&nbsp;{$vo.name}&nbsp;&nbsp;
						</volist>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"> 简介</label>
					<div class="controls">
						<textarea name="intro" rows="2" cols="20" id="intro" class="inputtext" style="height: 100px; width: 500px;"></textarea>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">{:L('STATUS')}</label>
					<div class="controls">
						<label class="radio inline" for="active_true"><input type="radio" name="use_flg" value="1" checked id="active_true" />{:L('ENABLED')}</label>
						<label class="radio inline" for="active_false"><input type="radio" name="use_flg" value="0" id="active_false">{:L('DISABLED')}</label>
					</div>
				</div>
			</fieldset>
			<div class="form-actions">
				<button type="submit" class="btn btn-primary js-ajax-submit">{:L('ADD')}</button>
				<a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
			</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>